import request from '@/utils/request'

export function login({ mobile, password }) {
  return request({
    url: '/api/sys/login',
    method: 'post',
    data: {
      mobile,
      password
    }
  })
}

export function getUserInfo() {
  return request({
    url: '/api/sys/profile',
    method: 'post'
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
